package frame.options.virtualNetworks;

import java.awt.event.KeyEvent;

import javax.swing.JMenu;
import frame.MopraFrame;

@SuppressWarnings("serial")
public class VirtualNetworksMenu extends JMenu
{
	private OpenVirtualNetworksMenuItem openVirtualNetworksMenuItem;
	public OpenVirtualNetworksMenuItem getOpenVirtualNetworksMenuItem(){ return openVirtualNetworksMenuItem; }
	public void setOpenVirtualNetworksMenuItem( OpenVirtualNetworksMenuItem openVirtualNetworksMenuItem ){ this.openVirtualNetworksMenuItem = openVirtualNetworksMenuItem; }
	
	private CreateVirtualNetworksMenuItem createVirtualNetworksMenuItem;
	public CreateVirtualNetworksMenuItem getCreateVirtualNetworksMenuItem(){ return createVirtualNetworksMenuItem; }
	public void setCreateVirtualNetworksMenuItem( CreateVirtualNetworksMenuItem createVirtualNetworksMenuItem ){ this.createVirtualNetworksMenuItem = createVirtualNetworksMenuItem; }
	
	private SaveVirtualNetworksMenuItem saveVirtualNetworksMenuItem;
	public SaveVirtualNetworksMenuItem getSaveVirtualNetworksMenuItem(){ return saveVirtualNetworksMenuItem; }
	public void setSaveVirtualNetworksMenuItem( SaveVirtualNetworksMenuItem saveVirtualNetworksMenuItem ){ this.saveVirtualNetworksMenuItem = saveVirtualNetworksMenuItem; }

	public VirtualNetworksMenu( MopraFrame mopraFrame )
	{	
		this.setOpenVirtualNetworksMenuItem( new OpenVirtualNetworksMenuItem( mopraFrame ) );
		this.setCreateVirtualNetworksMenuItem( new CreateVirtualNetworksMenuItem( mopraFrame ) );
		this.setSaveVirtualNetworksMenuItem( new SaveVirtualNetworksMenuItem( mopraFrame ) );
		
		this.setText( "Virtual Networks" );
		this.setMnemonic( KeyEvent.VK_V );
		this.add( this.getOpenVirtualNetworksMenuItem() );
		this.add( this.getCreateVirtualNetworksMenuItem() );
		this.add( this.getSaveVirtualNetworksMenuItem() );
	}
	
}
